I have this snippet of code in my html file:
<input autocomplete="off" autofocus name="month" placeholder="Month" type="number" onkeydown="return event.keyCode !== 69">
It works exactly as I want it to - doesn't let the user put "e" in a form when they type in their birthday. But how exactly does it work? What does "!== 69" return, and how does it prevent the letter "e" from appearing on the screen?
It works this way because the number 69 indicates the code for the letter "E" for Keycode values, as you can see in this link: https://css-tricks.com/snippets/javascript/javascript-keycodes/